<template>
	<view class="margin-15">
		<view class="bg-ffffff padded-5 border-radius-10 padded-l-15 padded-r-15 ">
			<view class="color-2C3340 text-16 margin-t-10">{{find.title}}</view>
			<view class="form-group color-B1B8C7 text-12">
			    <view class="label">{{find.author}}</view>
				<view class="value">{{find.release_at}}</view>
			</view>
		</view>
		<view v-if="nodes" class="bg-ffffff padded-15 border-radius-10 margin-t-15 uni-relative color-646D7F">
			<rich-text :nodes="nodes"></rich-text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				find:{},
				nodes:''
			}
		},
		onLoad(options) {
			var that = this
			uni.request({
			    url: 'https://wn.wdyky.com/index/jrgl/message_find', // 请求地址
				data:{id:options.id,mid:localStorage.getItem('mid')},
				method:'POST',
			    success: (res) => {
			        // 请求成功的回调函数
			        that.find = res.data
					that.nodes = res.data.content
					
				},
			})
		},
		methods: {
			
		}
	}
</script>

<style>
	.details-img{
		width: 100%;
	}
	.content{
		font-size: 13px;
		margin-bottom: 10px;
	    overflow: hidden;    
	}
	.form-group {
	  display: flex;
	  padding: 5px 0;
	  justify-content: space-between;
	}
	rich-text img {
	  width: 100%;
	  height: auto; /* 保持图片比例 */
	}
</style>
